﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SearchBullitin.aspx.cs" Inherits="pages_Bullitin_SearchBullitin" %>
<%@Register TagPrefix="Webdiyer" namespace="Wuqi.Webdiyer" Assembly="aspnetpager"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>公告管理</title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
    <form id="form1" runat="server">
    <script language="javascript" type="text/javascript" src="../../js/My97DatePicker/WdatePicker.js"></script>
    <table width="100%" align="center" cellpadding=0 cellspacing=0 border=0>
        <tr height="25">
           <td style="background-image: url(<%=Page.ResolveUrl("~/") %>images/lb_14.gif)">
               &nbsp;&nbsp;<asp:Image ID="Image1" runat="server" ImageUrl="~/images/navi-home.gif" ImageAlign="Bottom"/>&nbsp;系统管理
               <asp:Image ID="Image2" runat="server" ImageUrl="~/images/navi-sep.gif" ImageAlign="Bottom"/>&nbsp;公告管理
           </td>  
           <td class="top_buttons_td">
                <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="新建" Width="50px" CssClass="button_sky"/>                
           </td>  
        </tr>
    </table>
    

<br />
<table cellpadding="0" cellspacing="0" class="search_bar" align="center" width="96%" >
   <tr class="search_bar">
    <td width="34%">
       标题：<asp:TextBox ID="txtTitle" runat="server" Width="168px"></asp:TextBox>
        <asp:HiddenField ID="hfdTitle" runat="server" />
        &nbsp;
    </td>    
    
    <td width="48%" align="left">
       发布日期：<asp:TextBox ID="txtBeginDate" runat="server" Width="90px" ReadOnly="True"></asp:TextBox>&nbsp;
       <img alt="" src="../../images/Calendar.gif" onclick="WdatePicker({el:$dp.$('txtBeginDate')})" />
        <asp:HiddenField ID="hfdStartDate" runat="server" />
         &nbsp;～&nbsp;<asp:TextBox ID="txtEndDate" runat="server" Width="90px" ReadOnly="True"></asp:TextBox>
         <img alt="" src="../../images/Calendar.gif" onclick="WdatePicker({el:$dp.$('txtEndDate')})" />
        <asp:HiddenField ID="hfdEndDate" runat="server" />
        <asp:HiddenField ID="hfdSearchKey" runat="server" />
    </td>   
    
    <td width="18%" align="left" >      
        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" Width="50px"  CssClass="button_sky"/>&nbsp;<asp:HyperLink
            ID="hlkDispAll" runat="server" Visible="False">显示所有</asp:HyperLink></td> 
  </tr>   
</table>

<div class="div_center">
        <asp:Label ID="lblInfo" runat="server"></asp:Label><br />
        <asp:GridView ID="dvBulletinList" runat="server" AutoGenerateColumns="False" Width="96%" CellPadding="1"  Caption="公告信息" CssClass="tableGrid" HorizontalAlign="Center" ToolTip="公告信息" Font-Bold="False" Font-Size="9pt" SkinID="gridviewSkin" >
            <Columns>
                <asp:TemplateField HeaderText="公告标题"  ItemStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <asp:LinkButton ID="lkbTitle" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "pk_id")%>' OnClick="lkbTitle_Click"><%# DataBinder.Eval(Container.DataItem, "bulletin_title")%></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="发布部门">
                    <ItemTemplate>
                        <asp:Label ID="lblOrgan" runat="server"><%# DataBinder.Eval(Container.DataItem, "issue_organ")%></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="发布人">
                    <ItemTemplate>
                        <asp:Label ID="lblIssueEmpname" runat="server"><%# DataBinder.Eval(Container.DataItem, "issue_emp_name")%></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="发布时间">
                    <ItemTemplate>
                        <asp:Label ID="lblIssueDatetime" runat="server"><%# DataBinder.Eval(Container.DataItem, "issue_datetime", "{0:yyyy年M月d日}")%></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        &nbsp;<asp:LinkButton ID="lkbtonEdit" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "pk_id")%>' OnClick="lkbtonEdit_Click">编辑</asp:LinkButton>
                        <asp:LinkButton ID="lkbtnDel" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "pk_id")%>' OnClientClick="java:if(!confirm('是否要删除该条数据？'))return false;return true;" OnClick="lkbtnDel_Click">删除</asp:LinkButton>
                        
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
            &nbsp;
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
    <div class="div_center">
        <Webdiyer:AspNetPager runat="server" id="pager" OnPageChanged="pager_PageChanged" HorizontalAlign="right" PagingButtonSpacing="0" Height="25px" SubmitButtonStyle="border:1px solid #000066;height:20px;width:30px" InputBoxStyle="border:1px #0000FF solid;text-align:center" SubmitButtonText="转到" NumericButtonTextFormatString="[{0}]" ShowCustomInfoSection="left" Width="96%" CssClass="mypager" TextBeforeInputBox="转到第" TextAfterInputBox="页"/>
    </div>

    </form>
</body>
</html>
